I am so very new to DXL _. The goal is for user to select number - reset the current number to be 'selected' number. |
Re: new to DXL "for user to select number - reset the current number to be 'selected' number." Is number an attribute that you created? (It is not the AbsoluteNumber or ObjectNumber.) I am confused as to how the user "selects a number" to replace the number of the currently selected object. Could you elaborate? Is it possible that you could use an (integer) attribute based on an enumeration type? Clicking on the number-attribute of an object would present a drop-down list box that allows the user to select an enumeration from. |
Re: new to DXL Put "{co de}" without quotes nor the space before and after your code to make it look like this:
void goToLien(DBE calledFrom) {
Object o
Object nextObj = next sibling curObj
string ln = get(lNumber)
for o in entire mod do {
lienNum = nextObj."Lien Number"
string sln = lienNum ""
if (sln == ln) {
curObj = nextObj
}
}
description = curObj."Object Text"
comment = curObj."Comments"
set(pDescription, description)
set(probComment, comment)
set(lNumber, ++lienNum "")
}
void goToLien(DBE calledFrom) {
Object o, oNew = null
string ln = get(lNumber)
for o in entire mod do {
if (isDeleted(o)) continue // ignore deleted objects
if (row(o) or table(o)) continue // ignore invisible Table/Row header objects
if (cell(o)) continue // ignore table-cell objects
lienNum = o."Lien Number"
string sln = lienNum ""
if (sln == ln) {
oNew = o // ** FOUND THE SPECIFIED OBJECT
break // Don't bother to look any further
}
}
if (null oNew)
{ warningBox("Cannot find specified object #[" lienNum "]")
}
else
{ curObj = oNew
description = curObj."Object Text"
comment = curObj."Comments"
set(pDescription, description)
set(probComment, comment)
set(lNumber, ++lienNum "")
// Louie wonders of the following two lines are desirable:
current = curObj // Change selected object to the new one
refresh(module(curObj)) // Redisplay the module so user sees the new object
}
}
|